#include<stdio.h>
void main()
{
	int count,number;
	count=0;
	scanf("%d",&number);
	if(number<0)
	{
		number = -number;
	}
	do
	{
		number = number/10;
	count++;
	}
	while(number!=0);
		printf("%d\n",count);
}
